{extend name="default2/users/base" /}
{block name="title"}投诉管理 - 买家中心{__block__}{/block}
{block name="css"}
{/block}
{block name="content"}
  <div class="wst-user-head"><span>投诉管理</span></div>
  <div class='wst-user-tbar'>
     订单号：<input type='text' class="s-query" id='orderNo'/> 
     <button class="wst-sec-but u-btn" onclick="complainByPage()">查询</button>
  </div>
  
  <div class='wst-user-content'>
    <table class='wst-list'>
       <thead>
	      <tr class='head'>
	         <th>订单编号</th>
	         <th>被投诉方</th>
	         <th>投诉原因</th>
           <th>投诉时间</th>
           <th>投诉状态</th>
	         <th>操作</th>
	      </tr>
	   </thead>
<tbody id='list'></tbody>
   <tfoot>
     <tr><td colspan='10' id='pager' align="center" style='padding:5px 0px 5px 0px'></td></tr>
   </tfoot>
   <script id="tblist" type="text/html">
       {{# for(var i = 0; i < d.length; i++){ }}
          <tr>
          <td>{{d[i]['orderNo']}}</td>

          <td>{{d[i]['shopName']}}</td>

          <td>{{d[i]['complainContent']}}</td>

          <td>{{d[i]['complainTime']}}</td>

          <td>{{d[i]['complainStatus']}}</td>

          <td><a style="cursor:pointer;" onclick="toView({{d[i]['complainId']}})">查看</a></td>
         </tr>
       {{# } }}
      </script>
  </table>
  </div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/users/orders/orders.js?v={$v}'></script>
<script>
$(function(){
	 complainByPage();
})
</script>
{/block}
